home *** CD-ROM | disk | FTP | other *** search
/ Die Speccy' 97 / Die Speccy' 97.iso / amiga_system / the_aminet / comm / bbs / trinitybbs20.lha / OLP / tradewars.lzh / twsetup.execute < prev    next >
Text File  |  1992-05-23  |  2KB  |  67 lines

  1. echo "Tradewars Amiga"
  2. echo "By Jim Holzknecht"
  3. echo "Copyright 1990 by Hokey Software"
  4. echo "" 
  5. echo "Setting up Tradewars..."
  6. echo ""
  7. if not exists olp:
  8.   echo "Please assign the olp: directory!"
  9. endif
  10. if exists olp:
  11.   if not exists olp:tradewars
  12.     echo "Creating olp:tradewars directory..."
  13.     makedir "olp:tradewars"
  14.   endif
  15.   if not exists olp:tradewars/universe
  16.     echo "Creating olp:tradewars/universe directory..."
  17.     makedir "olp:tradewars/universe"
  18.   endif
  19.   if not exists olp:tradewars/players
  20.     echo "Creating olp:tradewars/players directory..."
  21.     makedir "olp:tradewars/players"
  22.   endif
  23.   if not exists olp:tradewars/planets
  24.     echo "Creating olp:tradewars/planets"
  25.     makedir "olp:tradewars/planets"
  26.   endif
  27.   if not exists olp:tradewars/teams
  28.     echo "Creating olp:tradewars/teams"
  29.     makedir "olp:tradewars/teams"
  30.   endif
  31.   copy Tradewars! olp:
  32.   copy twmain olp:
  33.   copy #?.tw olp:tradewars
  34.   copy #?.help olp:tradewars
  35.   copy unifiles.lzh olp:tradewars/universe
  36.   copy playerfiles.lzh olp:tradewars/players
  37.   copy teamfiles.lzh olp:tradewars/teams
  38.   if not exists c:lzh
  39.     echo "Missing lzh...cannot break down Tradewars Universe files!"
  40.   endif
  41.   if exists c:lzh 
  42.     lzh x unifiles.lzh olp:tradewars/universe/
  43.   endif
  44.   if not exists c:lzh
  45.     echo "Missing lzh...cannot break down Tradewars Player files!"
  46.   endif
  47.   if exists c:lzh
  48.     lzh x playerfiles.lzh olp:tradewars/players/
  49.   endif
  50.   if not exists c:lzh
  51.     echo "Missing lzh...cannot break down Tradewars Team files!"
  52.   endif
  53.   if exists c:lzh
  54.     lzh x teamfiles.lzh olp:tradewars/teams/
  55.   endif
  56.   if not exists c:sort
  57.     echo "You need sort in your C: directory. Please copy it now..."
  58.   endif
  59.   delete "Tradewars!"
  60.   delete "twmain"
  61.   delete "#?.tw"
  62.   delete "#?.help"
  63.   delete "unifiles.lzh"
  64.   delete "playerfiles.lzh"
  65.   delete "teamfiles.lzh"
  66.   echo "Now add 'Tradewars!' to your OLP menu!"
  67. endif